<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <link rel="icon" type="image/svg+xml" href="/vite.svg" />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1.0,user-scalable=no"
    />
    <title>Vite + React + TS</title>
  </head>
  <body>
    <div id="root"></div>
    <script>
      // function setRem() {
      //   const htmlWidth =
      //     document.documentElement.clientWidth || document.body.clientWidth;
      //   const htmlDom = document.getElementsByTagName("html")[0];
      //   // 以设计稿750px为例，1rem = 75px
      //   htmlDom.style.fontSize = htmlWidth / 10 + "px";
      // }

      // // 初始化
      // setRem();

      // // 窗口变化时重置
      // window.addEventListener("resize", setRem);
    </script>
    <script type="module" src="/src/main.tsx"></script>
  </body>
</html>
